package com.qyhl.question.question.rank;



import com.qyhl.webtv.commonlib.entity.question.QuestionRankBean;

import java.util.List;

public class QuestionRankPresenter implements QuestionRankContract.QuestionRankPresenter {
    private QuestionRankModel mModel;
    private QuestionRankContract.QuestionRankView mView;

    QuestionRankPresenter(QuestionRankContract.QuestionRankView mView) {
        this.mView = mView;
        this.mModel = new QuestionRankModel(this);
    }

    @Override
    public void getList(String subjectId, String range, String sort, String lastPhonenum, String lastCorrectNum, String lastTimes) {
        mModel.getList(subjectId, range, sort, lastPhonenum, lastCorrectNum, lastTimes);
    }

    @Override
    public void setList(List<QuestionRankBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
       mView.setError(msg,isMore);
    }
}
